<?php
namespace app\api\controller\v1;
/*
 * content : 前台用户访问类
 * Author  : Songyicong 
 * time    : 2018-04-21 17:43:28 
 * email   : m13726262373@163.com 
 */

use app\api\controller\BaseController;
use app\api\Service\v1\UserService;

class User extends BaseController{

    protected $userService;

    public function __construct(){
        parent::__construct();
        $userService = new UserService();
    }

    /** 注册用户 */
    public function getUser(){

    }

    /** 获取open_id */
    public function getOpenId(){
        $this->userService->getOpenId($this->params);
    }

    /** 生成用户open_id */
    public function setOpenid(){
        $this->userService->setOpenId($this->params);
    }
}